package com.tencent.qf.web.service.errorlog.impl;

import com.tencent.qf.common.log.ErrorLog;
import com.tencent.qf.system.api.ErrorLogApi;
import com.tencent.qf.web.convert.Convert;
import com.tencent.qf.web.service.errorlog.ApiErrorLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Copyright (C) 2022 Limited, a Tencent company. All rights reserved.
 *
 * @author p_htaozhou@tencent.com
 * @create: 2022/9/8 16:10
 */
@Service
public class ApiErrorLogServiceImpl implements ApiErrorLogService {
    @Resource
    private ErrorLogApi errorLogApi;

    @Override
    public Boolean createApiErrorLog(ErrorLog errorLog) {
        return errorLogApi.createApiErrorLog(Convert.INSTANCE.apiErrorLog2DTO(errorLog));
    }
}
